<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div class="j q"></div><br>
    <div class="j j"></div><br>
    <div class="j at"></div>
<style>
    .j{
            width: 200px;
            height: 200px;
            border: 1px solid  rgb(52, 37, 128);
            transition: all 2s;
            background-color:  rgb(92, 50, 84);
        }
        .q:hover{
            transform: rotateX(180deg);
        }
        .j:hover{
            transform: rotateY(180deg);
        }
        .at:hover{
            transform: rotateZ(180deg);
        }
</style>
</body>
</html>